<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设置权限</title>

<style type="text/css">
	#myDiv ul,#myDiv li{
		margin: 0px;
		padding: 0px;
		list-style: none;
		line-height: 30px;
		font-size: 16px;
	}
	#myDiv ul{
		width: 1050px;
		margin-left: 10px;
	}
	#myDiv li{
		border: 1px solid #999;
		padding-left: 10px;
	}
</style>
</head>
<body>
	<div style="width: 1100px;height: 500px;background-color: #FFF;margin: 20px;color:#000;">
		<h4 style="background-color: #9FB2C2;padding-left: 10px;color: #516D8A;line-height: 40px;"><img alt="" src="${initParam.url}/statics/images/title.jpg"> 设置权限</h4>
		<div id="myDiv">
		<form action="setPower">
			<input type="hidden" name="id" value="${id }">
			<ul>
				<c:forEach var="limit" items="${limits }" varStatus="count">
					<li><input type="checkbox" name="${limit.name }"
					<c:forEach var="lrrelation" items="${lrrelations }">
						<c:if test="${lrrelation.limit.id==limit.id }">
							 checked="checked"
						</c:if>
					</c:forEach>
					/>${limit.name }</li>
				</c:forEach>
			</ul>
			<div style="width: 300px; margin: 10px auto;">
				<button type="submit" class="btn btn-info">设置物管权限</button>
				<input class="btn btn-default" type="button" onclick="history.go(-1);" value="返回">
			</div>
			</form>
		</div>
	</div>
</body>
</html>